//
//  MTLocationManager.h
//  Tazama NGO
//
//  Created by jsheriff on 3/15/11.
//  Copyright 2011 The MITRE Corporation. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@interface MTLocationManager : NSObject <CLLocationManagerDelegate> {
    CLLocationManager* locationManager;
    CLLocation* lastUpdatedLocation;
    
    NSDate *lastUpdateTime;
    
    int updateIntervalInSeconds;
    int updateDistinceInMetersInactive;
    int updateDistanceInMetersActive;
    
}

@property (readonly) CLLocation* currentLocation;

+ (MTLocationManager *)sharedInstance;

- (void)startPeriodicReporting;

- (void)applicationClosed:(BOOL)updateLoc;

- (void)applicationOpened:(BOOL)updateLoc;

- (void)setUpdateFlag:(BOOL)flag;

@end
